package com.ffapp.demo.bean;

import android.text.TextUtils;

import java.util.Date;

import my.TimeUtils;

public class HomeOndutyPersonListData extends BasisBean {


    /**
     * id : 90478eec045ce93fa520fa9618970595
     * createBy : system
     * createUserName : system
     * createTime : 2020-09-01 00:10:00
     * updateBy : system
     * updateUserName : system
     * updateTime : 2020-09-01 00:10:00
     * dutyDate : 2020-09-09 00:00:00
     * dutyUserId : 35000459
     * dutyUserName : 吴晓龙
     * dutyPost : 带班领导
     * phone : 13806033799
     * dutyOrder : 1
     */

    private String id;
    private String createBy;
    private String createUserName;
    private String createTime;
    private String updateBy;
    private String updateUserName;
    private String updateTime;
    private String dutyDate;
    private String dutyUserId;
    private String dutyUserName;
    private String dutyPost;
    private String phone;
    private String dutyPostShort;
    private String dutyDeptId;
    private String dutyDeptName;
    private int dutyOrder;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getDutyDate() {
        return dutyDate;
    }

    public String getDutyDateSTR() {
        if(TextUtils.isEmpty(dutyDate))return "";
        Date date = TimeUtils.getDateByStr(dutyDate,"yyyy-MM-dd HH:mm:ss");
        return TimeUtils.getTimeByDate(date,"yyyy-MM-dd");
    }

    public void setDutyDate(String dutyDate) {
        this.dutyDate = dutyDate;
    }

    public String getDutyUserId() {
        return dutyUserId;
    }

    public void setDutyUserId(String dutyUserId) {
        this.dutyUserId = dutyUserId;
    }

    public String getDutyUserName() {
        return dutyUserName;
    }

    public void setDutyUserName(String dutyUserName) {
        this.dutyUserName = dutyUserName;
    }

    public String getDutyPost() {
        return dutyPost;
    }

    public void setDutyPost(String dutyPost) {
        this.dutyPost = dutyPost;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getDutyOrder() {
        return dutyOrder;
    }

    public void setDutyOrder(int dutyOrder) {
        this.dutyOrder = dutyOrder;
    }

    public String getDutyPostShort() {
        if(TextUtils.isEmpty(dutyPostShort))return "";
        return dutyPostShort;
    }

    public void setDutyPostShort(String dutyPostShort) {
        this.dutyPostShort = dutyPostShort;
    }

    public String getDutyDeptId() {
        return dutyDeptId;
    }

    public void setDutyDeptId(String dutyDeptId) {
        this.dutyDeptId = dutyDeptId;
    }

    public String getDutyDeptName() {
        if(TextUtils.isEmpty(dutyDeptName))return "";
        return dutyDeptName;
    }

    public void setDutyDeptName(String dutyDeptName) {
        this.dutyDeptName = dutyDeptName;
    }
}
